<?php /* Smarty version 2.6.18, created on 2016-01-27 00:21:58
         compiled from notices.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main-content">
	
	<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
	<li><i class="icon-home home-icon"></i> <a
		href="index.php">首页</a></li>
</ul>
	</div>
	

<div class="page-content">

<div id="pcDevice" style="display:block" class="col-xs-12">

<div class="alert alert-info">
<form class="form-horizontal" role="form">
<div class="row">

		<label class="col-sm-1 control-label no-padding-right" for="form-field-5">标签</label>	
		<div class="col-sm-2">
				<select style="width:150px;" id="tagInfo">
					<option value="" >标签</option>
					<?php if ($this->_tpl_vars['tags']): ?> <?php $_from = $this->_tpl_vars['tags']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['tagInfo']):
?>
					<?php if ($this->_tpl_vars['nowTagId'] == $this->_tpl_vars['tagInfo']['tagId']): ?>
					<option value="<?php echo $this->_tpl_vars['tagInfo']['tagId']; ?>
" selected><?php echo $this->_tpl_vars['tagInfo']['tag']; ?>
</option>
					<?php else: ?>
					<option value="<?php echo $this->_tpl_vars['tagInfo']['tagId']; ?>
"><?php echo $this->_tpl_vars['tagInfo']['tag']; ?>
</option>
					<?php endif; ?> <?php endforeach; endif; unset($_from); ?> <?php endif; ?>
				</select>
		</div>
		<!--  
		<label class="col-sm-1 control-label no-padding-right" for="form-field-5">游戏</label>	
		<div class="col-sm-2">
				<select id="selectGame">
					<option value="" >游戏</option>
					<?php if ($this->_tpl_vars['selectGames']): ?> <?php $_from = $this->_tpl_vars['selectGames']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
					<?php if ($this->_tpl_vars['nowGame'] == $this->_tpl_vars['value']): ?>
					<option value="<?php echo $this->_tpl_vars['value']; ?>
" selected><?php echo $this->_tpl_vars['value']; ?>
</option>
					<?php else: ?>
					<option value="<?php echo $this->_tpl_vars['value']; ?>
"><?php echo $this->_tpl_vars['value']; ?>
</option>
					<?php endif; ?> <?php endforeach; endif; unset($_from); ?> <?php endif; ?>
				</select>
		</div>

		<label class="col-sm-1 control-label no-padding-right" for="form-field-5">渠道</label>	
		<div class="col-sm-2">
				<select id="selectArea">
										<option value="" id="Area">渠道</option>
										<?php if ($this->_tpl_vars['areaInfoArr']): ?> <?php $_from = $this->_tpl_vars['areaInfoArr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
										<?php if ($this->_tpl_vars['selectArea'] == $this->_tpl_vars['value']): ?>
										<option value="<?php echo $this->_tpl_vars['value']; ?>
" selected><?php echo $this->_tpl_vars['value']; ?>
</option>
										<?php else: ?>
										<option value="<?php echo $this->_tpl_vars['value']; ?>
"><?php echo $this->_tpl_vars['value']; ?>
</option>
										<?php endif; ?> <?php endforeach; endif; unset($_from); ?> <?php endif; ?>
				</select>
		</div>
		
		<div id="lang" style="display:block">
		<label  class="col-sm-1 control-label no-padding-right" for="form-field-5">版本</label>	
		<div  class="col-sm-2">
				<select id="selectLang">
								<option value="" id="selectLangs">版本</option>
								<?php if ($this->_tpl_vars['channels']): ?> <?php $_from = $this->_tpl_vars['channels']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
								<?php if ($this->_tpl_vars['nowLang'] == $this->_tpl_vars['value']): ?>
								<option value="<?php echo $this->_tpl_vars['value']; ?>
" selected><?php echo $this->_tpl_vars['value']; ?>
</option>
								<?php else: ?>
								<option value="<?php echo $this->_tpl_vars['value']; ?>
"><?php echo $this->_tpl_vars['value']; ?>
</option>
								<?php endif; ?> <?php endforeach; endif; unset($_from); ?> <?php endif; ?>
				</select>
		</div>
		</div>
		-->
	
		<div class="col-sm-2">	
		<center>
		<button type="button" onClick="formSubmit();"
			class="width-10 btn btn-sm btn-primary">查询</button>
		
		</center>
		</div>
		
</div>	
		
</form>						
		
</div>
</div>


<div class="col-xs-12">
<div class="table-header">
公告信息
</div>

<div id="viewAll"  class="table-responsive">
<table id="sample-table-2"
	class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>公告名称</th>
			<th>文件名</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<?php $_from = $this->_tpl_vars['filList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['data']):
?>
		<tr>
			<td><?php echo $this->_tpl_vars['data']['name']; ?>
</td>
			<td><?php echo $this->_tpl_vars['data']['fileName']; ?>
</td>
			<td style="width:550px"> <!-- target="_blank" -->
					<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
						<a class="green" target="_blank"   href="index.php?mod=AnnounceData&do=view&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
" >
							<i class=" icon-circle-arrow-up bigger-130"></i>&nbsp;预览
						</a>
						&nbsp;
						<a class="green"   href="index.php?mod=AnnounceData&do=download&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
" >
							<i class=" icon-circle-arrow-up bigger-130"></i>&nbsp;下载
						</a>
						&nbsp;
						<!--  
						<?php if ($this->_tpl_vars['data']['isOnline'] == 1): ?>
						<a class="green" href="javascript:if(confirm('确认生效正式环境吗?'))window.location='index.php?mod=Data&do=upToOnline&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
&game=<?php echo $this->_tpl_vars['nowGame']; ?>
&selectArea=<?php echo $this->_tpl_vars['selectArea']; ?>
&selectLang=<?php echo $this->_tpl_vars['selectLang']; ?>
'" >
							<i class=" icon-circle-arrow-up bigger-130"></i>&nbsp;已生效(正式)
						</a>
						<?php else: ?>
						<a class="green" href="javascript:if(confirm('确认生效正式环境吗?'))window.location='index.php?mod=Data&do=upToOnline&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
&game=<?php echo $this->_tpl_vars['nowGame']; ?>
&selectArea=<?php echo $this->_tpl_vars['selectArea']; ?>
&selectLang=<?php echo $this->_tpl_vars['selectLang']; ?>
'" >
							<i class=" icon-circle-arrow-up bigger-130"></i>&nbsp;生&nbsp;效(正式)
						</a>
						<?php endif; ?>
							&nbsp;
						<a class="green" href="javascript:if(confirm('确认生效到测试环境吗?'))window.location='index.php?mod=Data&do=upToOnline&test=1&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
&game=<?php echo $this->_tpl_vars['nowGame']; ?>
&selectArea=<?php echo $this->_tpl_vars['selectArea']; ?>
&selectLang=<?php echo $this->_tpl_vars['selectLang']; ?>
'" >
							<i class="icon-pencil bigger-130"></i>&nbsp;生效(测试)
						</a>
						-->
						&nbsp;
						<a class="green" href="index.php?mod=AnnounceData&do=edit&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
&tagInfo=<?php echo $this->_tpl_vars['nowTagId']; ?>
" >
							<i class="icon-pencil bigger-130"></i>&nbsp;编辑
						</a>
						&nbsp;
						
						<a class="red" href="javascript:if(confirm('确认删除吗?'))window.location='index.php?mod=AnnounceData&do=delete&fileName=<?php echo $this->_tpl_vars['data']['fileName']; ?>
&tagInfo=<?php echo $this->_tpl_vars['nowTagId']; ?>
'">
							<i class="icon-trash bigger-130"></i>&nbsp;删除
						</a>
					</div>
		</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
	</tbody>
</table>
</div>
</div>


<!-- /.table-responsive --></div>
</div>
<!-- /.page-content -->
</div>

<script type="text/javascript">
	jQuery(function($) {
		$('.date-picker').datepicker({
			autoclose : true
		}).next().on(ace.click_event, function() {
			$(this).prev().focus();
		});

		var oTable1 = $('#sample-table-1').dataTable({
			"aoColumns" : [ 
				{"bSortable" : false},
				{"bSortable" : false},
				{"bSortable" : false},
			]
		});
		

	});

	function formSubmit() {
		var tagInfo = $('#tagInfo').val();
		if (!tagInfo) {
			alert('请选择标签！');
		} else {
			url = "index.php?mod=AnnounceData&do=selectNotices&tagInfo="+tagInfo;
			window.location.href = url;
		}
	}
		
</script>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
